body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border: 2px solid #333;
    overflow: hidden;
}

#game-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #eee;
    z-index: 10;
}

#game-canvas {
    display: block;
    background-color: #fff;
    width: 100%;
    height: calc(100% - 50px); /* 减去header的高度 */
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 10;
}

#game-over.hidden {
    display: none;
}

button {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
}